#include <gtest/gtest.h>
#include "types/reflex.h"
#include "../sample/docking_task.h"
#include "task/abstract_task.h"

TEST(test_reflex_demo, test_reflex)
{
    REGISTER_TASK_TYPE(DockingTask)

    auto docking_task = reflex::TaskReflexManager::constructTask("DockingTask", "docking_task");
    docking_task->onStart();
}

TEST(test_reflex_register_judge, test_reflex)
{
    REGISTER_TASK_TYPE(DockingTask)
    if (reflex::TaskReflexManager::isTypeRegistered("DockingTask"))
    {
        SUCCEED();
    }
    else
    {
        FAIL();
    }
}
